package com.drinks.yiniang.entity.user.order;

import com.drinks.yiniang.entity.common.UploadImageJson;
import com.hansen.library.entity.BaseJson;

import java.util.ArrayList;
import java.util.List;

/**
 * 待评价的评价列表
 * @author han
 * @date 2019/11/13
 */
public class OrderEvaluateJson extends BaseJson {

    private OrderEvaluateData data;

    public OrderEvaluateData getData() {
        return data;
    }

    public void setData(OrderEvaluateData data) {
        this.data = data;
    }

    public static class OrderEvaluateData {

        private List<OrderEvaluateGoods> goods;
        //雷达评分项 （用户为专家时 有值）
        private List<OrderEvaluateRadar> radar;

        public List<OrderEvaluateGoods> getGoods() {
            return goods;
        }

        public void setGoods(List<OrderEvaluateGoods> goods) {
            this.goods = goods;
        }

        public List<OrderEvaluateRadar> getRadar() {
            return radar;
        }

        public void setRadar(List<OrderEvaluateRadar> radar) {
            this.radar = radar;
        }
    }

    public static class OrderEvaluateGoods {
        private String order_id;
        private String goods_id;
        private String cover_url;
        private String goods_name;
        private String recommend_reason;
        //前端添加评论内容，防止数据混乱
        private String commentContent;
        //前端添加商品评分, 防止混乱
        private float goodsScore;
        //前端添加雷达多维度评分
        private List<OrderEvaluateRadar> dimensionScores;
        //前端添加图片id
        private List<UploadImageJson.UploadImageData> imageIds;


        public String getOrder_id() {
            return order_id;
        }

        public void setOrder_id(String order_id) {
            this.order_id = order_id;
        }

        public String getGoods_id() {
            return goods_id;
        }

        public void setGoods_id(String goods_id) {
            this.goods_id = goods_id;
        }

        public String getCover_url() {
            return cover_url;
        }

        public void setCover_url(String cover_url) {
            this.cover_url = cover_url;
        }

        public String getGoods_name() {
            return goods_name;
        }

        public void setGoods_name(String goods_name) {
            this.goods_name = goods_name;
        }

        public String getRecommend_reason() {
            return recommend_reason;
        }

        public void setRecommend_reason(String recommend_reason) {
            this.recommend_reason = recommend_reason;
        }

        public String getCommentContent() {
            return commentContent;
        }

        public void setCommentContent(String commentContent) {
            this.commentContent = commentContent;
        }

        public float getGoodsScore() {
            return goodsScore;
        }

        public void setGoodsScore(float goodsScore) {
            this.goodsScore = goodsScore;
        }

        public List<OrderEvaluateRadar> getDimensionScores() {
            return dimensionScores;
        }

        public void setDimensionScores(List<OrderEvaluateRadar> dimensionScores) {
            this.dimensionScores = dimensionScores;
        }

        public List<UploadImageJson.UploadImageData> getImageIds() {
            return imageIds;
        }

        public void setImageIds(List<UploadImageJson.UploadImageData> imageIds) {
            this.imageIds = imageIds;
        }
    }

    public static class OrderEvaluateRadar implements Cloneable {
        private String name;
        private String sort;
        //前端添加的选择评分值
        private float scoreValue;

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getSort() {
            return sort;
        }

        public void setSort(String sort) {
            this.sort = sort;
        }

        public float getScoreValue() {
            return scoreValue;
        }

        public void setScoreValue(float scoreValue) {
            this.scoreValue = scoreValue;
        }

        @Override
        public Object clone() throws CloneNotSupportedException {
            OrderEvaluateRadar radar = (OrderEvaluateRadar) super.clone();
            return radar;
        }
    }
}
